Skip to content

Conversation

@sachmii
Copy link
Contributor

@sachmii sachmii commented Jan 20, 2026

Checklist

General

Server

Motivation and Context

Closes #1695, needed to add interview data to user data export/

Description

  • Added interviewee data to applicant export and interview process/slot data to staff export (no IDs included)
  • Introduced new export DTOs for interview processes and interviewees; expanded interview slot DTO to include context fields without IDs
  • Extended interview repositories with queries needed to fetch interviewees and slots with job context
  • Updated export mapping logic to build interview process/slot data from fetched entities
  • Adjusted user data export tests to cover interview data and assert IDs are not present in the JSON

Steps for Testing

Prerequisites:

  1. Log in to TumApply as admin, professor and applicant
  2. Check that user data export works and contains only user-specific data

Review Progress

Code Review

  • Code Review 1

Manual Tests

  • Test 1

Test Coverage

Warning: Server tests failed. Coverage could not be fully measured. Please check the workflow logs.

Last updated: 2026-01-23 11:21:42 UTC

@sachmii sachmii self-assigned this Jan 20, 2026
@sachmii sachmii requested a review from az108 as a code owner January 20, 2026 10:35
@sachmii sachmii linked an issue Jan 20, 2026 that may be closed by this pull request
@github-actions github-actions bot added server Pull requests that update Java code. (Added Automatically!) tests labels Jan 20, 2026
@github-actions
Copy link
Contributor

@sachmii Test coverage could not be fully measured because some tests failed. Please check the workflow logs for details.

@github-actions
Copy link
Contributor

@sachmii Test coverage has been automatically updated in the PR description.

@sachmii sachmii requested a review from Bofan-Zhu January 20, 2026 10:44
@github-actions
Copy link
Contributor

@sachmii Test coverage could not be fully measured because some tests failed. Please check the workflow logs for details.

@github-actions
Copy link
Contributor

🤖 No OpenAPI or client changes needed.

Copy link
Contributor

@Abi107717 Abi107717 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for implementing this 😊Code LGTM, Just small comments, is there are a reason, that you are using NON_NULL instead of NON_EMPTY?

@sachmii sachmii requested a review from Abi107717 January 22, 2026 17:50
@github-actions
Copy link
Contributor

@sachmii Test coverage has been automatically updated in the PR description.

@github-actions
Copy link
Contributor

🤖 No OpenAPI or client changes needed.

@github-actions
Copy link
Contributor

@sachmii Test coverage could not be fully measured because some tests failed. Please check the workflow logs for details.

@sachmii sachmii added ready for merge PR is ready to merge and removed ready for review labels Jan 23, 2026
Copy link
Contributor

@Kiara65 Kiara65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it on the testserver and the Interview Data is not included in the export data, thank you!

One thing I noticed is that the time in the export data differs from the time displayed for the Interview slots. I think they use different time zones, which can be confusing for the user. Maybe you could adjust it in the exported data or add a time zone there.

Another nitpick I noticed is that the times for the Interview data are in the format: "date T time Z". For the comments, the format "date T time" is used, without the Z at the end. This is not very important, just something I noticed for consistency 😄

Image Image

Comment on lines +228 to +246
InterviewProcess process = new InterviewProcess();
process.setJob(job);
process = interviewProcessRepository.save(process);

Interviewee interviewee = new Interviewee();
interviewee.setInterviewProcess(process);
interviewee.setApplication(application);
interviewee.setLastInvited(Instant.parse("2025-01-01T10:00:00Z"));
interviewee = intervieweeRepository.save(interviewee);

InterviewSlot slot = new InterviewSlot();
slot.setInterviewProcess(process);
slot.setInterviewee(interviewee);
slot.setStartDateTime(Instant.now().plusSeconds(3600));
slot.setEndDateTime(Instant.now().plusSeconds(7200));
slot.setLocation("Room 101");
slot.setStreamLink("https://stream.test/slot");
slot.setIsBooked(true);
interviewSlotRepository.save(slot);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you create test data for the interview data?
Maybe you could also open a new issue for the other interview service tests, since they don’t seem to use test data yet 😅 (Or adjust them as well in this PR, but this is not necessary)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reworked the tests in my other PR #1755 and I don't create an interview data there.

@sachmii
Copy link
Contributor Author

sachmii commented Jan 23, 2026

One thing I noticed is that the time in the export data differs from the time displayed for the Interview slots. I think they use different time zones, which can be confusing for the user. Maybe you could adjust it in the exported data or add a time zone there.

Another nitpick I noticed is that the times for the Interview data are in the format: "date T time Z". For the comments, the format "date T time" is used, without the Z at the end. This is not very important, just something I noticed for consistency 😄

Regarding the format, I will implement this in the #1755 PR.

Update: @Kiara65, I just implemented it in my latest commit in #1755.
Screenshot 2026-01-23 at 12 26 21
Screenshot 2026-01-23 at 12 26 33

@github-actions
Copy link
Contributor

@sachmii Test coverage could not be fully measured because some tests failed. Please check the workflow logs for details.

@github-actions
Copy link
Contributor

🤖 No OpenAPI or client changes needed.

@sachmii sachmii requested a review from Kiara65 January 23, 2026 11:26
Copy link
Contributor

@Kiara65 Kiara65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick update, lgtm! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for merge PR is ready to merge server Pull requests that update Java code. (Added Automatically!) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add interview data to user data export

4 participants